<?php
/**
 * Created by PhpStorm.
 * User: liuhong
 * Date: 2018/8/28
 * Time: 下午2:42
 */

namespace Mobile\Controller;


use Admin\Controller\OrderController;
use Api\Service\LogService;
use Common\Service\CurlService;
use Common\Service\GradeService;
use Common\Service\LogInfoService;
use Common\Service\MoneyLogService;
use Common\Service\OrderService;
use Common\Service\OrderserviceService;
use Common\Service\PromoteService;
use Common\Service\ThirdService;
use Common\Service\UpgradeService;
use Common\Service\UserService;
use Common\Service\WechatTempService;
use Think\Controller;

class TestController extends Controller
{
    public function test(){
        $memberModel=M('member');
        $moneyModel=M('moneylog');
        $where['money']=array('egt',1);
        $userInfo=$memberModel->where($where)->select();
        $user=array();
        foreach ($userInfo as $k=>$v){
            $where['uid']=$v['uid'];
            $re=$moneyModel->where($where)->find();
            if(!$re){
                $user[]=$v['uid'];
            }
        }
        LogService::S()->writeLog('empty_user','user',$user);
        dump($user);
    }

    public function bakcAcc(){
        $url='https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxed6071616b8b9c27&secret=bd74e163453fdd6c151692999eac034e';
        $re=CurlService::S()->httpMethodGet($url);
        dump($re);
    }
}